home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_09_04 / 9n04008a < prev    next >
Text File  |  1991-03-19  |  1KB  |  55 lines

  1.  
  2. /* locale.h standard header */
  3. #ifndef _LOCALE
  4. #define _LOCALE
  5.         /* macros */
  6. #define NULL    _NULL
  7.         /* locale codes */
  8. #define LC_ALL        0
  9. #define LC_COLLATE    1
  10. #define LC_CTYPE    2
  11. #define LC_MONETARY    3
  12. #define LC_NUMERIC    4
  13. #define LC_TIME        5
  14.     /* ADD YOURS HERE */
  15. #define _NCAT        6    /* one more than last */
  16.         /* type definitions */
  17. struct lconv {
  18.     struct lconv *_Next;
  19.     const char *_Name;
  20.         /* controlled by LC_CTYPE */
  21.     const short *_Ctype;
  22.     const short *_Tolower;
  23.     const short *_Toupper;
  24.         /* controlled by LC_MONETARY */
  25.     char *currency_symbol;
  26.     char *int_curr_symbol;
  27.     char *mon_decimal_point;
  28.     char *mon_grouping;
  29.     char *mon_thousands_sep;
  30.     char *negative_sign;
  31.     char *positive_sign;
  32.     char frac_digits;
  33.     char int_frac_digits;
  34.     char n_cs_precedes;
  35.     char n_sep_by_space;
  36.     char n_sign_posn;
  37.     char p_cs_precedes;
  38.     char p_sep_by_space;
  39.     char p_sign_posn;
  40.         /* controlled by LC_NUMERIC */
  41.     char *decimal_point;
  42.     char *grouping;
  43.     char *thousands_sep;
  44.     };
  45.         /* declarations */
  46. struct lconv *localeconv(void);
  47. char *setlocale(int, const char *);
  48. struct lconv *_Getloc(const char *, const char *);
  49. struct lconv *_Setloc(int, struct lconv *);
  50. extern struct lconv _Clocale, _Locale;
  51.         /* macro overrides */
  52. #define localeconv()    (&_Locale)
  53. #endif
  54.  
  55.